package com.tcm.ucenter.service;

import com.base.core.exception.ServiceException;
import com.base.core.pager.PageBean;
import com.tcm.ucenter.domain.dto.UserRechargeDTO;
import com.tcm.ucenter.domain.entity.UserRecharge;

public interface UserRechargeService {

    /**
     * 创建充值单
     *
     * @param userRechargeDTO
     * @return
     */
    void create(UserRechargeDTO userRechargeDTO) throws ServiceException;

    /**
     * 支付后更新
     *
     * @param userRechargeDTO
     * @return
     */
    void update(UserRechargeDTO userRechargeDTO);

    /**
     * 获取单条数数据
     *
     * @param id
     * @return
     */
    UserRechargeDTO findById(Long id);

    /**
     * 获取单条数数据
     *
     * @param orderSn
     * @return
     */
    UserRechargeDTO findByOrderSn(String orderSn);

    /**
     * 获取单条数据
     *
     * @param userId
     * @throws Exception
     */
    PageBean<UserRechargeDTO> listPageByUserId(Long userId, Long start, Long pagesize) throws ServiceException;

}
